package com.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.dao.UserMapper;
import com.ssm.pojo.User;
import com.ssm.serivce.UserService;

@Service("userSerice")
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;
    
    public User getUserById(Integer id) {
        return this.userMapper.selectByPrimaryKey(id);
    }
    
}
